import React, {Component} from 'react';
import {observer, inject} from 'mobx-react';

@inject('blogStore')
@observer
export default class Self extends Component {

    submit = () => {
        this.props.todolist.addTodo("23");
    }

    render() {
        return (
            <div>
                <button onClick={this.submit}>submit</button>
                <button></button>
                Tasks left: {this.props.todolist.unfinishedTodoCount}
            </div>
        );
    }
}
